<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>库存查询</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:150px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript">
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";
		
		function selectall_todo()
		{
			$("input[name='chk_list']").attr("checked",true);
		}
		function selectall_undo()
		{
			$("input[name='chk_list']").attr("checked",false);
		}
	</script>
</head>
<body class="">
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div>库存查询</div>
		<div>
		<form id="frm_search" method="post" action="{:U('Warehouse/stk_search')}" style="margin:10px auto 0px 25px;">
		<div style="float:left; margin:0px; padding:2px;">
		<select id="wh_id" name="wh_id" class="easyui-combobox" editable="false" style="width:190px;">
								<option value=''>所有仓库</option>
								<volist name='whlist' id="whlist">
								<option value='{$whlist["id"]}'>{$whlist['title']}</option>
								</volist>
		</select>
		</div>
		<script type="text/javascript">$("#wh_id").attr("value","{$wh_id}");</script>
		商品编号/条码/名称：<input type="text" id="keywords" name="keywords" class="input" value="{$keywords}" />
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon-search" onclick="$('#frm_search').submit();">搜索</a>
        <a href="javascript:;" class="easyui-linkbutton" iconCls="icon-print" style="display:;" onclick="window.open('{:U('Warehouse/stk_search_print')}?cid={$cid}&keywords={$keywords}&wh_id={$wh_id}');">打印</a>
		</form>
		</div>
	</div>
	
	<div class=" space-out-10px">
	
	<div class="list-title">
		<div class="list-t-l w80px">仓库</div>
		<div class="list-t-l w200px">商品名称</div>
		<div class="list-t-l w100px">编号/条码</div>
		<div class="list-t-l w50px">单位</div>
        
        <div class="list-t-l w80px">批号</div>
        <div class="list-t-l w80px">有效期</div>
        <div class="list-t-l w80px">批准文号</div>
        <div class="list-t-l w80px">规格</div>
        <div class="list-t-l w80px">产地</div>
        
		<div class="list-t-l w80px">库存数量</div>
		<div class="list-t-r">
		<a href="{:U('Warehouse/stk_search')}" class="easyui-linkbutton" iconCls="icon-reload">刷新</a>
		</div>
	</div>
	
	<div class="list-box">
	<volist name="datalist" id="datalist">
	<div class="list-body">
		<div class="list-t-l w80px">{$datalist.wh_title}</div>
		<div class="list-t-l w200px" alt="{$datalist.stk_title}" title="{$datalist.stk_title}">{$datalist.stk_title}</div>
		<div class="list-t-l w100px">{$datalist.stk_code}</div>
		<div class="list-t-l w50px">{$datalist.stk_uom}</div>
        
        <div class="list-t-l w80px">{$datalist.batch_no}</div>
        <div class="list-t-l w80px">{$datalist.expiry_date|get_date='Y-m-d',###}</div>
		<div class="list-t-l w80px">{$datalist.approval_no}</div>
        <div class="list-t-l w80px">{$datalist.spec}</div>
        <div class="list-t-l w80px">{$datalist.madein}</div>
        
		<div class="list-t-l w80px">{$datalist.open_qty|get_round=###,6}</div>
	</div>
	</volist>
	</div>
	
	<div class="list-title">
		<div class="list-t-l"><b>总计数量：{$stk_total.open_qty|get_round=###,6}&nbsp;&nbsp;&nbsp;&nbsp;</b></div>
		<div class="list-t-r">
		<a href="{:U('Warehouse/stk_search')}" class="easyui-linkbutton" iconCls="icon-reload">刷新</a>
		</div>
	</div>
	
	</div>
	
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div class="pages">&nbsp;{$page}</div>
	</div>
</body>
</html>
